﻿using _2._18._2015_MoviesInClass.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _2._18._2015_MoviesInClass.Adapters
{
    public class MovieMockAdapter : IMovieAdapter
    {
        public List<MovieViewModel> GetMovies(string userId = null)
        {
            List<MovieViewModel> models = new List<MovieViewModel>();

            models.Add(new MovieViewModel
            {
                MovieId = 1,
                PosterUrl = "http://th05.deviantart.net/fs70/PRE/i/2012/101/7/2/my_little_pony__friendship_is_magic_poster_2_by_sploich-d4vta6h.jpg",
                Rating = -5,
                Title = "My Little Pony"
            });

            models.Add(new MovieViewModel
            {
                MovieId = 2,
                PosterUrl = "http://cdn.collider.com/wp-content/image-base/Movies/N/Nightmare_on_Elm_Street_2010/posters/A%20Nightmare%20on%20Elm%20Street%20movie%20poster.jpg",
                Rating = 5,
                Title = "Nightmare On Elm Street"
            });

            return models;
        }

        public void CreateMovie(MovieViewModel model, string userId)
        {
            throw new NotImplementedException();
        }

        public MovieViewModel GetMovie(int movieId)
        {
            throw new NotImplementedException();
        }

        public void UpdateMovie(MovieViewModel model)
        {
            throw new NotImplementedException();
        }
    }
}
